home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / tclx7_31.z / tclx7_31 / tcldev / tclX7.3a-p1 / tclsrc / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-11-25  |  4.0 KB  |  108 lines

  1. #
  2. # Makefile --
  3. #
  4. # Makefile for Extended Tcl package library.  Also generates help files
  5. # for both standard and Extended Tcl.  This assumes that Tcl has compiled
  6. # successfully, as it is run here.
  7. #------------------------------------------------------------------------------
  8. # Copyright 1992-1993 Karl Lehenbauer and Mark Diekhans.
  9. #
  10. # Permission to use, copy, modify, and distribute this software and its
  11. # documentation for any purpose and without fee is hereby granted, provided
  12. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  13. # Mark Diekhans make no representations about the suitability of this
  14. # software for any purpose.  It is provided "as is" without express or
  15. # implied warranty.
  16. #------------------------------------------------------------------------------
  17. # $Id: Makefile.in,v 3.2 1993/11/25 05:03:37 markd Exp $
  18. #------------------------------------------------------------------------------
  19. #
  20. SHELL = /bin/sh
  21.  
  22. #------------------------------------------------------------------------------
  23. # Autoconfig defines that can be overridden in Config.mk
  24.  
  25. srcdir            = @srcdir@
  26. srcbasedir        = @srcbasedir@
  27. bldbasedir        = @bldbasedir@
  28. VPATH             = @srcdir@
  29. prefix            = /usr/local
  30. exec_prefix       = /usr/local
  31.  
  32. #------------------------------------------------------------------------------
  33. # Include user-editable defines.
  34.  
  35. @MAKEINCLUDE@ @MAKEQUOTE@${bldbasedir}/Config.mk@MAKEQUOTE@
  36.  
  37. #------------------------------------------------------------------------------
  38.  
  39. TCL.TLIB       = ${bldbasedir}/tclmaster/tcl.tlib
  40. TCL.TNDX       = ${bldbasedir}/tclmaster/tcl.tndx
  41. TCLINIT.TCL    = ${bldbasedir}/tclmaster/TclInit.tcl
  42. BUILDIDX.TCL   = ${bldbasedir}/tclmaster/buildidx.tcl
  43. LOADOUSTER.TCL = ${bldbasedir}/tclmaster/loadouster.tcl
  44. HELP           = ${bldbasedir}/tclmaster/help
  45. HELPSRC        = ${srcbasedir}/tclhelp
  46. TCLMANPAGES    = ${srcbasedir}/tools/tclmanpages
  47. BLDMANHELP     = ../runtcl ${srcbasedir}/tools/bldmanhelp
  48.  
  49. #------------------------------------------------------------------------------
  50.  
  51. TCL_SRCS = arrayprocs.tcl   compat.tcl       convlib.tcl      edprocs.tcl    \
  52.            forfile.tcl      globrecur.tcl    help.tcl         profrep.tcl    \
  53.            pushd.tcl        setfuncs.tcl     showproc.tcl     stringfile.tcl \
  54.            tcllib.tcl       fmath.tcl        tclshell.tcl     buildhelp.tcl  \
  55.            parray.tcl       ${TCL_UCB_SRC}/library/parray.tcl
  56.  
  57. #------------------------------------------------------------------------------
  58.  
  59. all: ${TCLINIT.TCL} ${BUILDHELP.TCL} ${BUILDIDX.TCL} ${LOADOUSTER.TCL} \
  60.      ${TCL.TLIB} HELPCP
  61.  
  62. ${TCLINIT.TCL}: TclInit.tcl
  63.     -rm -f ${TCLINIT.TCL} 
  64.     cp ${srcdir}/TclInit.tcl ${TCLINIT.TCL}
  65.  
  66. ${BUILDIDX.TCL}: buildidx.tcl
  67.     -rm -f ${BUILDIDX.TCL}
  68.     cp ${srcdir}/buildidx.tcl ${BUILDIDX.TCL}
  69.  
  70. ${LOADOUSTER.TCL}: loadouster.tcl
  71.     -rm -f ${LOADOUSTER.TCL}
  72.     cp ${srcdir}/loadouster.tcl ${LOADOUSTER.TCL}
  73.  
  74. ${TCL.TLIB}: ${TCL_SRCS} ${BUILDIDX.TCL} ${TCLINIT.TCL}
  75.     -rm -f ${TCL.TLIB} ${TCL.TNDX}
  76.     (cd ${srcdir}; cat ${TCL_SRCS}) | \
  77.         egrep -v '^#$$|^#  *|^#-|^#=|^  *#' > $@
  78.     ../runtcl -c "buildpackageindex ${TCL.TLIB}"
  79.  
  80. #------------------------------------------------------------------------------
  81. # Copy help files to the master directory.
  82. #
  83.  
  84. HELPCP: ${HELP}/Tcl.brf ${HELP}/TclX.brf
  85.  
  86. ${HELP}/Tcl.brf ${HELP}/TclX.brf: ${HELPSRC}/Tcl.brf ${HELPSRC}/TclX.brf
  87.     ${bldbasedir}/tools/cphelpdir ${HELPSRC} ${HELP}
  88.  
  89. #------------------------------------------------------------------------------
  90. # Build help for Tcl & TclX.
  91.  
  92. buildtclhelp: ${TCLINIT.TCL} ${TCL.TLIB}
  93.     rm -rf ${HELPSRC}
  94.     mkdir ${HELPSRC}
  95.     ${BLDMANHELP} ${TCL_UCB_SRC}/doc ${TCLMANPAGES} ${HELPSRC} Tcl.brf
  96.     ../runtcl -c "buildhelp ${HELPSRC} TclX.brf ${srcbasedir}/man/TclX.n"
  97.     rm -rf ${HELP}    
  98.  
  99. #------------------------------------------------------------------------------
  100. # Nothing to clean here, tclmaster is cleaned at the top level.
  101. clean:
  102.  
  103. #------------------------------------------------------------------------------
  104. # Restore to the distributed state.
  105.  
  106. distclean: clean
  107.     rm -f Makefile
  108.